//index.js
//获取应用实例
var app = getApp()
Page({
  data: {
    navTab: ["首页", "柜子"],
    currentNavtab: "0",
    indicatorDots: false,
    autoplay: true,
    interval: 5000,
    duration: 1000
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      
    })
  },
  // 加载
  onLoad: function () {
    
  },
  //切换tab
  switchTab: function (e) {
    this.setData({
      currentNavtab: e.currentTarget.dataset.idx
    });
  }

})
